package cn.lliiooll.evt;

import cn.lliiooll.mt.ShiFu;
import cn.lliiooll.mt.TuDi;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class PlayerDelPupilEvent extends Event implements Cancellable{
        private static final HandlerList handlers;
        private Player player;
        private TuDi tudi;
        private boolean canceled;

        static {
        handlers = new HandlerList();
    }

    public PlayerDelPupilEvent(Player player, TuDi tudi) {
        this.canceled = false;
        this.player = player;
        this.tudi = tudi;
    }

        public TuDi getTuDi(){
        return this.tudi;
    }

        public Player getPlayer() {
        return this.player;
    }

    public HandlerList getHandlers() {
        return this.handlers;
    }

        public static HandlerList getHandlerList() {
        return PlayerDelPupilEvent.handlers;
    }

        public boolean isCancelled() {
        return this.canceled;
    }

        public void setCancelled(final boolean canceled) {
        this.canceled = canceled;
    }
    }
